# Maintainer: Thomas Liske <thomas@fiasko-nw.net>
pkgname=py3-pyroute2
_pkgname=pyroute2
pkgver=0.6.9
pkgrel=0
pkgdesc="Python Netlink library: full installation"
url="https://github.com/svinota/pyroute2"
arch="noarch"
license="GPL-2.0-or-later OR Apache-2.0"
makedepends="py3-setuptools"
depends="py3-pyroute2.core
	py3-pyroute2.ethtool
	py3-pyroute2.ipdb
	py3-pyroute2.ipset
	py3-pyroute2.ndb
	py3-pyroute2.nftables
	py3-pyroute2.nslink
	py3-pyroute2.protocols"
provides="py3-pyroute2-minimal=$pkgver-r$pkgrel"
options="!check" # currently not working, yet
source="https://files.pythonhosted.org/packages/source/${_pkgname:0:1}/$_pkgname/$_pkgname-$pkgver.tar.gz
        "
builddir="$srcdir/$_pkgname-$pkgver"

build() {
	python3 setup.py build
}

package() {
	python3 setup.py install --prefix=/usr --root="$pkgdir"

	# do not ship cli scripts for now
	rm -rf "${pkgdir:?}/usr/bin"
}

sha512sums="
83e7d5074c4ed059025df67e12d7ff2520f97a71a1e2e7b1904d2d747f45dc996eba2d2a2e169d5f46e08c6cb3561d58e236286f6838f7fbbce858e318e078c9  pyroute2-0.6.9.tar.gz
"
